package com.njtoyo.taxi.admin.rest.presenter.business.driver;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@Accessors(chain = true)
@ApiModel(value = "司机财务统计")
public class DriverAccountPresenter {
    @ApiModelProperty(value = "打车订单收入")
    private BigDecimal riderOrder = BigDecimal.ZERO;

    @ApiModelProperty(value = "空驶费收入")
    private BigDecimal rideCancellationOrder = BigDecimal.ZERO;

    @ApiModelProperty(value = "街边订单收入")
    private BigDecimal streetRideOrder = BigDecimal.ZERO;

    @ApiModelProperty(value = "扫码订单收入")
    private BigDecimal scanRideOrder = BigDecimal.ZERO;

    @ApiModelProperty(value = "一键叫车收入")
    private BigDecimal simpleRideOrder = BigDecimal.ZERO;
    
    @ApiModelProperty(value = "本地生活返利")
    private BigDecimal memberRebate = BigDecimal.ZERO;

    @ApiModelProperty(value = "平台扣款")
    private BigDecimal deducting = BigDecimal.ZERO;

    @ApiModelProperty(value = "已提现总额")
    private BigDecimal withdrawDone = BigDecimal.ZERO;

    @ApiModelProperty(value = "等待打款总额")
    private BigDecimal withdrawWait = BigDecimal.ZERO;

    @ApiModelProperty(value = "奖励")
    private Reward reward = new Reward();

    @ApiModelProperty(value = "余额")
    private BigDecimal driverBalance =  BigDecimal.ZERO;

    @Data
    public static class Reward {
        @ApiModelProperty(value = "线上订单红包奖励")
        private BigDecimal onlineOrderRedPacket = BigDecimal.ZERO;

        @ApiModelProperty(value = "推广用户完成首单奖励")
        private BigDecimal recommendationFirstOrderReward = BigDecimal.ZERO;

        @ApiModelProperty(value = "推广用户完成首单奖励")
        private BigDecimal recommendationReward = BigDecimal.ZERO;

        @ApiModelProperty(value = "线上订单奖励")
        private BigDecimal onlineOrderReward = BigDecimal.ZERO;
    }
}
